package net.bluemind.ysnp.impl;

public class AuthExecutorFactory {

	private SaslauthdProtocolFactory adf;

	public AuthExecutorFactory(ValidationPolicy vp) {
		adf = new SaslauthdProtocolFactory(vp);
	}

	public IAuthExecutor createAsyncExecutor(ConnectionHandler handler) {
		SaslauthdProtocol dialog = adf.get();
		AsyncExecutor ae = new AsyncExecutor(handler, dialog);
		ae.start();
		return ae;
	}

}
